package com.asion.vmovie.ui.MVPPresenter;

import com.asion.vmovie.beans.DetialsBean;
import com.asion.vmovie.ui.MVPContract.MuHouContract;

/**
 * Created by asion on 16-10-18.
 */

public class MuHouDetailPresenter extends MuHouContract.DetialPresenter {

    @Override
    public void getDetialData(int p, int size, int cateid) {
        mModel.getDetialData(p, size, cateid, new MuHouContract.OnDetialDataPost() {
            @Override
            public void onDataPostSuccess(DetialsBean detialsBean) {
                mView.showDataSuccess(detialsBean);
            }

            @Override
            public void onDataPostError(Throwable throwable) {
                mView.showDataError(throwable);
            }
        });
    }
}
